<?php
$errors = $this->flash->getMessages('error');
$success = $this->flash->getMessages('success');

?>
<?php if (!empty($errors)): ?>

  <div class="flash flasherror error">

    <?php foreach ($errors as $message): ?>
        <?= $message; ?>
    <?php endforeach; ?>
  
  </div> <!-- /.flasherror -->

<?php endif; ?>
<?php if (!empty($success)): ?>

  <div class="flash flashsuccess success">

    <?php foreach ($success as $message): ?>
        <?= $message; ?>
    <?php endforeach; ?>

  </div> <!-- /.flashsuccess -->

<?php endif; ?>
<?php if (!empty($notice)): ?>

  <div class="flash flashnotice notice">

    <?php foreach ($success as $message): ?>
        <?= $message; ?>
    <?php endforeach; ?>

  </div> <!-- /.flashnotice -->

<?php endif; ?>